Repository navigation
feat(libSceHttp2): complete asynchronous requests through the kqueue option - #1092
Merged
Merged
Conversation
…option sceHttp2SendRequestAsync no longer fails synchronously: it queues a completion carrying the network error and triggers the user event named by the kqueue option. sceHttp2WaitAsync returns queued completions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
|
This was referenced Oct 7, 2026
This was referenced Oct 7, 2026
11 tasks done
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
No network is emulated, so every libSceHttp2 request fails with the library's network error (0x80436063). Until now
sceHttp2SendRequestAsyncreturned that error synchronously andsceHttp2WaitAsyncreturned it too. Titles that use the asynchronous API expect the failure to arrive as a completion instead:sceHttp2SendRequestAsynctakes the kqueue option (newHttp2AsyncOptioninSceTypes.hpp: equeue at 0, user event id at 8, user data at 16; layout inferred from PPSA17221), queues anHttp2AsyncResultfor the request withresult= network error, triggers the user event on that equeue with the user data, and returns 0.sceHttp2WaitAsyncreturns and removes the oldest completion of the request.sceHttp2DeleteRequestdrops pending completions.NotImplemented_nid_no_patch).event_typevalue is unknown and left 0.PPSA17221 (Minecraft) completes its request object only after
sceHttp2SendRequestAsyncreturns, and its handler for a synchronous failure callsshared_from_thisbefore that, so a synchronous failure crashed it.guest_http2now registers a user event, sends asynchronously, receives the event with the request id and user data, reads the completion withsceHttp2WaitAsync, and checks the throwing cases.Title
PPSA17221 (Minecraft) needs #716 to load the modules in its app root, so every run below is current
main+ #716 + the PRs of this set (#1088, #1090–#1096), plus local changes outside it: dialog, NpAuth and TextToSpeech2 stubs that open PRs cover (#560, #925, #301) and a GPU end-of-pipe change that is not submitted. With all of them the title loads a world. The line below is from a run with only this PR left out, Windows 11, WinLibs GCC, normal user session.Without it the title terminates about 8 s after start:
Tested
Debian 13 (WSL2), GCC 14.2.0, Release: full
ctest390/390 passed (GPU tests skipped: no Vulkan device in WSL), includingguest_http2.Windows 11, WinLibs GCC: PPSA17221 with this PR and the rest of the set loads a world (runs described above). Not tested with Windows
ctest.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code